package com.lottery.game.runner;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

import java.util.Date;

/**
 * 更新机器人列表类 10秒扫描一次数据库
 *
 * @author gexiao
 *
 */
//@Component
@Deprecated
public class UpdateRobotData implements ApplicationRunner {
	Logger logger = LoggerFactory.getLogger(UpdateRobotData.class);
	  @Autowired
	  RobotManager robotManager;
	@Override
	public void run(ApplicationArguments args) throws Exception {
		// TODO Auto-generated method stub
		logger.info("当前时间:"+(new Date())+",主线程更新机器人启动。。");
		robotManager.runRobotManager();
	}


}
